package com.teamsea;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

        ApplicationContext context2 = new AnnotationConfigApplicationContext("com.teamsea");

        Object bean1 = context.getBean("bean1");

        System.out.println(bean1);
        
    }
}